package com.czz.portal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czz.portal.entity.Question;
import com.czz.portal.query.QuestionQuery;
import com.czz.portal.vo.QuestionDetailVo;
import com.czz.portal.vo.UserQuestionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: QuestionMapper
 * @Author Czz
 * @Date 2020/2/13
 * @Time 13:25
 **/
public interface QuestionMapper extends BaseMapper<Question> {
    QuestionDetailVo getQuestionDetailById(String id);
    void updateQuestionClickById(String id);
    void questionReplyPlus(String questionId);
    List<UserQuestionVo> getUserQuestionPageList(Page<UserQuestionVo> pageParam, String userId);
    List<Question> getQuestionPageList(Page<Question> pageParam,@Param("query")QuestionQuery questionQuery);
}
